projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5a6b6
)
GtkToggleButton: Make it able to be prelight and active at the same time.
author
Carlos Garnacho
<carlosg@gnome.org>
Wed, 24 Nov 2010 01:10:28 +0000
(
02:10
+0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:40 +0000
(15:39 +0100)
gtk/gtktogglebutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtktogglebutton.c
b/gtk/gtktogglebutton.c
index 9f67cf7e91c616ad4685ff4e82160d40883759e2..7b8ae49f620639faf32621703af44b32212fbf07 100644
(file)
--- a/
gtk/gtktogglebutton.c
+++ b/
gtk/gtktogglebutton.c
@@
-581,7
+581,8
@@
gtk_toggle_button_update_state (GtkButton *button)
if (!touchscreen && button->priv->in_button && (!button->priv->button_down || priv->draw_indicator))
new_state |= GTK_STATE_FLAG_PRELIGHT;
- else if (depressed)
+
+ if (depressed)
new_state |= GTK_STATE_FLAG_ACTIVE;
_gtk_button_set_depressed (button, depressed);